
body {
    background: url('/static/img.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

nav {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.container {
    width: 50%;
    max-width: 1200px;
    background-color: rgba(200, 255, 200, 0.8);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin: 1rem auto;
}

/* 登录和注册界面样式 */
form {
    max-width: 400px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

}

form input[type="text"],
form input[type="password"],
form input[type="submit"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #45a049;
}

/* 查询天气界面样式 */
.weather-query {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.weather-query input[type="text"],
.weather-query input[type="submit"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.weather-query input[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

.weather-query input[type="submit"]:hover {
    background-color: #0056b3;
}

/* 提示信息样式 */
.flash-message {
    max-width: 400px;
    margin: 1rem auto;
    padding: rem;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
}


.form-buttons a {
    margin: 0 5px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

.form-buttons a:hover {
    background-color: #0056b3;
}
